package com.gxa.order.controller;

import com.gxa.common.commons.R;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/order")
public class OrderTest {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/test")
    public R customerTest(Integer id) {
        R r = new R();
        r.setCode(200);
        r.setMsg(id+"");
        r.setData(serverPort);
        return r;
    }

}